package com.demo2;
/*打折收费子类
* */
public class CashRebate extends Cashsuper {
    private double moneyRebate=1d;

    public CashRebate(double moneyRebate) {
        this.moneyRebate = moneyRebate;
    }

    @Override
    public double acceptCash(double money) {
                return money*moneyRebate;
    }
}
